package com.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.controller.vo.ApplyVo;
import com.controller.vo.BankMetaVo;
import com.dao.entity.Apply;

/**
 * @author geliyang
 *
 */
public interface IApplyService {
	
	public Apply saveApply(Apply apply);
	
	/**
	 * 贷款银行查询支持
	 * @author geliyang
	 * @param apply
	 * @return
	 */
	public List<BankMetaVo> applySupport(Apply apply, Integer page, Integer size);
	
	/**
	 * 贷款银行查询支持
	 * @param applyId
	 * @return
	 */
	public List<BankMetaVo> applySupport(Long applyId);

	/**
	 * 贷款申请
	 * @author geliyang
	 * @param apply
	 * @param commisId
	 * @param page
	 * @param size
	 * @return
	 */
	public List<BankMetaVo> doApply(Apply apply, Integer page, Integer size);

	/**
	 * 完成贷款
	 * @param applyId
	 */
	public void completeApply(Long applyId);

	/**
	 * 查询贷款
	 * @param apply
	 * @param page
	 * @param size
	 * @return
	 */
	public Page<ApplyVo> getApplys(Apply apply, Integer page, Integer size);
}
